package com.epmxx.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.epmxx.vo.RoomQuery;
import com.epmxx.vo.RoomVO;
import com.epmxx.domain.Hotel;
import com.epmxx.domain.Room;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 酒店房间数据接口操作
* @Entity com.epmxx.domain.Room
*/
@Mapper
public interface RoomMapper extends BaseMapper<Room> {

    /**
     * 分页查询
     *
     * @param query
     * @return
     */
    List<RoomVO> selectList(RoomQuery query);

    /**
     * 查询所有酒店，渲染酒店下拉框
     *
     * @return
     */
    List<Hotel> selectHotel();

    /**
     * 批量删除
     *
     * @param id
     * @return
     */
    int deleteRoomBatch(@Param("ids") List<Integer> id);
}
